package com.gcong.repository;

import com.gcong.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by 巩聪 on 2018/1/7.
 */
public interface StudentRepository extends JpaRepository<Student, Long>{
    /**
     *根据名字查询，方法名格式严格要求
     */
    List<Student> findByName(String name);
}
